package ca.venasse.pinventory.part.event;

import org.axonframework.domain.DomainEvent;

import ca.venasse.pinventory.common.Category;
import ca.venasse.pinventory.common.Name;

public class PartCreatedEvent extends DomainEvent {

	private static final long serialVersionUID = 1L;

	private final Category category;
	private final Name name;

	public PartCreatedEvent(Name name, Category category) {
		this.name = name;
		this.category = category;
	}

	public Category getCategory() {
		return this.category;
	}

	public Name getName() {
		return this.name;
	}

}
